package org.admanager.piadlpattern.plugin.diagram.part;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.admanager.piadladmanagement.plugin.piadladmanagement.CBAPattern;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PComponent;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PComponentPort;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PConnector;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PConnectorRole;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PConstraint;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PElement;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PMultiplicity;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PRole;
import org.admanager.piadladmanagement.plugin.piadladmanagement.PiadladmanagementPackage;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.CBAPatternEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponent2EditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponentComponentCompartment2EditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponentComponentCompartmentEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponentEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponentPort2EditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponentPortAttachedRoleEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponentPortDelegatedPortsEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PComponentPortEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConnector2EditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConnectorConnectorCompartment2EditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConnectorConnectorCompartmentEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConnectorEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConnectorRole2EditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConnectorRoleDelegatedRolesEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConnectorRoleEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PConstraintEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PElementMultiplicityEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PElementRolesEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PMultiplicityEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PRoleEditPart;
import org.admanager.piadlpattern.plugin.diagram.edit.parts.PRoleRoleCompartmentEditPart;
import org.admanager.piadlpattern.plugin.diagram.providers.PiADLADManagementMetamodelElementTypes;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.gmf.runtime.notation.View;

/**
 * @generated
 */
public class PiADLADManagementMetamodelDiagramUpdater {

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/getSemanticChildren(
			View view) {
		switch (PiADLADManagementMetamodelVisualIDRegistry.getVisualID(view)) {
		case CBAPatternEditPart.VISUAL_ID:
			return getCBAPattern_1000SemanticChildren(view);
		case PComponentComponentCompartmentEditPart.VISUAL_ID:
			return getPComponentComponentCompartment_7011SemanticChildren(view);
		case PComponentComponentCompartment2EditPart.VISUAL_ID:
			return getPComponentComponentCompartment_7012SemanticChildren(view);
		case PConnectorConnectorCompartmentEditPart.VISUAL_ID:
			return getPConnectorConnectorCompartment_7013SemanticChildren(view);
		case PConnectorConnectorCompartment2EditPart.VISUAL_ID:
			return getPConnectorConnectorCompartment_7014SemanticChildren(view);
		case PRoleRoleCompartmentEditPart.VISUAL_ID:
			return getPRoleRoleCompartment_7015SemanticChildren(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/getCBAPattern_1000SemanticChildren(
			View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		CBAPattern modelElement = (CBAPattern) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getElements().iterator(); it
				.hasNext();) {
			PElement childElement = (PElement) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PComponentEditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PComponentPortEditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PConnectorEditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PConnectorRoleEditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getMultiplicities().iterator(); it
				.hasNext();) {
			PMultiplicity childElement = (PMultiplicity) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PMultiplicityEditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getContainingRoles().iterator(); it
				.hasNext();) {
			PRole childElement = (PRole) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PRoleEditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/getPComponentComponentCompartment_7011SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		PComponent modelElement = (PComponent) containerView.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getInternalElements().iterator(); it
				.hasNext();) {
			PElement childElement = (PElement) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PComponent2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PComponentPort2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PConnector2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/getPComponentComponentCompartment_7012SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		PComponent modelElement = (PComponent) containerView.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getInternalElements().iterator(); it
				.hasNext();) {
			PElement childElement = (PElement) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PComponent2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PComponentPort2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PConnector2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/getPConnectorConnectorCompartment_7013SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		PConnector modelElement = (PConnector) containerView.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getInternalElements().iterator(); it
				.hasNext();) {
			PElement childElement = (PElement) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PConnectorRole2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PComponent2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PConnector2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/getPConnectorConnectorCompartment_7014SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		PConnector modelElement = (PConnector) containerView.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getInternalElements().iterator(); it
				.hasNext();) {
			PElement childElement = (PElement) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PConnectorRole2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PComponent2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
			if (visualID == PConnector2EditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/getPRoleRoleCompartment_7015SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		PRole modelElement = (PRole) containerView.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getInvariants().iterator(); it
				.hasNext();) {
			PConstraint childElement = (PConstraint) it.next();
			int visualID = PiADLADManagementMetamodelVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PConstraintEditPart.VISUAL_ID) {
				result.add(new PiADLADManagementMetamodelNodeDescriptor(
						childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getContainedLinks(
			View view) {
		switch (PiADLADManagementMetamodelVisualIDRegistry.getVisualID(view)) {
		case CBAPatternEditPart.VISUAL_ID:
			return getCBAPattern_1000ContainedLinks(view);
		case PComponentEditPart.VISUAL_ID:
			return getPComponent_2013ContainedLinks(view);
		case PComponentPortEditPart.VISUAL_ID:
			return getPComponentPort_2014ContainedLinks(view);
		case PConnectorEditPart.VISUAL_ID:
			return getPConnector_2015ContainedLinks(view);
		case PConnectorRoleEditPart.VISUAL_ID:
			return getPConnectorRole_2016ContainedLinks(view);
		case PMultiplicityEditPart.VISUAL_ID:
			return getPMultiplicity_2017ContainedLinks(view);
		case PRoleEditPart.VISUAL_ID:
			return getPRole_2018ContainedLinks(view);
		case PComponent2EditPart.VISUAL_ID:
			return getPComponent_3011ContainedLinks(view);
		case PComponentPort2EditPart.VISUAL_ID:
			return getPComponentPort_3012ContainedLinks(view);
		case PConnector2EditPart.VISUAL_ID:
			return getPConnector_3013ContainedLinks(view);
		case PConnectorRole2EditPart.VISUAL_ID:
			return getPConnectorRole_3014ContainedLinks(view);
		case PConstraintEditPart.VISUAL_ID:
			return getPConstraint_3015ContainedLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getIncomingLinks(
			View view) {
		switch (PiADLADManagementMetamodelVisualIDRegistry.getVisualID(view)) {
		case PComponentEditPart.VISUAL_ID:
			return getPComponent_2013IncomingLinks(view);
		case PComponentPortEditPart.VISUAL_ID:
			return getPComponentPort_2014IncomingLinks(view);
		case PConnectorEditPart.VISUAL_ID:
			return getPConnector_2015IncomingLinks(view);
		case PConnectorRoleEditPart.VISUAL_ID:
			return getPConnectorRole_2016IncomingLinks(view);
		case PMultiplicityEditPart.VISUAL_ID:
			return getPMultiplicity_2017IncomingLinks(view);
		case PRoleEditPart.VISUAL_ID:
			return getPRole_2018IncomingLinks(view);
		case PComponent2EditPart.VISUAL_ID:
			return getPComponent_3011IncomingLinks(view);
		case PComponentPort2EditPart.VISUAL_ID:
			return getPComponentPort_3012IncomingLinks(view);
		case PConnector2EditPart.VISUAL_ID:
			return getPConnector_3013IncomingLinks(view);
		case PConnectorRole2EditPart.VISUAL_ID:
			return getPConnectorRole_3014IncomingLinks(view);
		case PConstraintEditPart.VISUAL_ID:
			return getPConstraint_3015IncomingLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getOutgoingLinks(
			View view) {
		switch (PiADLADManagementMetamodelVisualIDRegistry.getVisualID(view)) {
		case PComponentEditPart.VISUAL_ID:
			return getPComponent_2013OutgoingLinks(view);
		case PComponentPortEditPart.VISUAL_ID:
			return getPComponentPort_2014OutgoingLinks(view);
		case PConnectorEditPart.VISUAL_ID:
			return getPConnector_2015OutgoingLinks(view);
		case PConnectorRoleEditPart.VISUAL_ID:
			return getPConnectorRole_2016OutgoingLinks(view);
		case PMultiplicityEditPart.VISUAL_ID:
			return getPMultiplicity_2017OutgoingLinks(view);
		case PRoleEditPart.VISUAL_ID:
			return getPRole_2018OutgoingLinks(view);
		case PComponent2EditPart.VISUAL_ID:
			return getPComponent_3011OutgoingLinks(view);
		case PComponentPort2EditPart.VISUAL_ID:
			return getPComponentPort_3012OutgoingLinks(view);
		case PConnector2EditPart.VISUAL_ID:
			return getPConnector_3013OutgoingLinks(view);
		case PConnectorRole2EditPart.VISUAL_ID:
			return getPConnectorRole_3014OutgoingLinks(view);
		case PConstraintEditPart.VISUAL_ID:
			return getPConstraint_3015OutgoingLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getCBAPattern_1000ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponent_2013ContainedLinks(
			View view) {
		PComponent modelElement = (PComponent) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponentPort_2014ContainedLinks(
			View view) {
		PComponentPort modelElement = (PComponentPort) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnector_2015ContainedLinks(
			View view) {
		PConnector modelElement = (PConnector) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnectorRole_2016ContainedLinks(
			View view) {
		PConnectorRole modelElement = (PConnectorRole) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPMultiplicity_2017ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPRole_2018ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponent_3011ContainedLinks(
			View view) {
		PComponent modelElement = (PComponent) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponentPort_3012ContainedLinks(
			View view) {
		PComponentPort modelElement = (PComponentPort) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnector_3013ContainedLinks(
			View view) {
		PConnector modelElement = (PConnector) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnectorRole_3014ContainedLinks(
			View view) {
		PConnectorRole modelElement = (PConnectorRole) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConstraint_3015ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponent_2013IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponentPort_2014IncomingLinks(
			View view) {
		PComponentPort modelElement = (PComponentPort) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnector_2015IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnectorRole_2016IncomingLinks(
			View view) {
		PConnectorRole modelElement = (PConnectorRole) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPMultiplicity_2017IncomingLinks(
			View view) {
		PMultiplicity modelElement = (PMultiplicity) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_PElement_Multiplicity_4012(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPRole_2018IncomingLinks(
			View view) {
		PRole modelElement = (PRole) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_PElement_Roles_4011(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponent_3011IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponentPort_3012IncomingLinks(
			View view) {
		PComponentPort modelElement = (PComponentPort) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnector_3013IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnectorRole_3014IncomingLinks(
			View view) {
		PConnectorRole modelElement = (PConnectorRole) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConstraint_3015IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponent_2013OutgoingLinks(
			View view) {
		PComponent modelElement = (PComponent) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponentPort_2014OutgoingLinks(
			View view) {
		PComponentPort modelElement = (PComponentPort) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnector_2015OutgoingLinks(
			View view) {
		PConnector modelElement = (PConnector) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnectorRole_2016OutgoingLinks(
			View view) {
		PConnectorRole modelElement = (PConnectorRole) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPMultiplicity_2017OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPRole_2018OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponent_3011OutgoingLinks(
			View view) {
		PComponent modelElement = (PComponent) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPComponentPort_3012OutgoingLinks(
			View view) {
		PComponentPort modelElement = (PComponentPort) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnector_3013OutgoingLinks(
			View view) {
		PConnector modelElement = (PConnector) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConnectorRole_3014OutgoingLinks(
			View view) {
		PConnectorRole modelElement = (PConnectorRole) view.getElement();
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getPConstraint_3015OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getIncomingFeatureModelFacetLinks_PElement_Roles_4011(
			PRole target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == PiadladmanagementPackage.eINSTANCE
					.getPElement_Roles()) {
				result.add(new PiADLADManagementMetamodelLinkDescriptor(
						setting.getEObject(),
						target,
						PiADLADManagementMetamodelElementTypes.PElementRoles_4011,
						PElementRolesEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getIncomingFeatureModelFacetLinks_PElement_Multiplicity_4012(
			PMultiplicity target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == PiadladmanagementPackage.eINSTANCE
					.getPElement_Multiplicity()) {
				result.add(new PiADLADManagementMetamodelLinkDescriptor(
						setting.getEObject(),
						target,
						PiADLADManagementMetamodelElementTypes.PElementMultiplicity_4012,
						PElementMultiplicityEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getIncomingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(
			PComponentPort target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == PiadladmanagementPackage.eINSTANCE
					.getPComponentPort_DelegatedPorts()) {
				result.add(new PiADLADManagementMetamodelLinkDescriptor(
						setting.getEObject(),
						target,
						PiADLADManagementMetamodelElementTypes.PComponentPortDelegatedPorts_4013,
						PComponentPortDelegatedPortsEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getIncomingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(
			PConnectorRole target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == PiadladmanagementPackage.eINSTANCE
					.getPComponentPort_AttachedRole()) {
				result.add(new PiADLADManagementMetamodelLinkDescriptor(
						setting.getEObject(),
						target,
						PiADLADManagementMetamodelElementTypes.PComponentPortAttachedRole_4014,
						PComponentPortAttachedRoleEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getIncomingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(
			PConnectorRole target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == PiadladmanagementPackage.eINSTANCE
					.getPConnectorRole_DelegatedRoles()) {
				result.add(new PiADLADManagementMetamodelLinkDescriptor(
						setting.getEObject(),
						target,
						PiADLADManagementMetamodelElementTypes.PConnectorRoleDelegatedRoles_4015,
						PConnectorRoleDelegatedRolesEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_PElement_Roles_4011(
			PElement source) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		for (Iterator/*[?]*/destinations = source.getRoles().iterator(); destinations
				.hasNext();) {
			PRole destination = (PRole) destinations.next();
			result.add(new PiADLADManagementMetamodelLinkDescriptor(source,
					destination,
					PiADLADManagementMetamodelElementTypes.PElementRoles_4011,
					PElementRolesEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_PElement_Multiplicity_4012(
			PElement source) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		PMultiplicity destination = source.getMultiplicity();
		if (destination == null) {
			return result;
		}
		result.add(new PiADLADManagementMetamodelLinkDescriptor(
				source,
				destination,
				PiADLADManagementMetamodelElementTypes.PElementMultiplicity_4012,
				PElementMultiplicityEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_PComponentPort_DelegatedPorts_4013(
			PComponentPort source) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		for (Iterator/*[?]*/destinations = source.getDelegatedPorts()
				.iterator(); destinations.hasNext();) {
			PComponentPort destination = (PComponentPort) destinations.next();
			result.add(new PiADLADManagementMetamodelLinkDescriptor(
					source,
					destination,
					PiADLADManagementMetamodelElementTypes.PComponentPortDelegatedPorts_4013,
					PComponentPortDelegatedPortsEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_PComponentPort_AttachedRole_4014(
			PComponentPort source) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		PConnectorRole destination = source.getAttachedRole();
		if (destination == null) {
			return result;
		}
		result.add(new PiADLADManagementMetamodelLinkDescriptor(
				source,
				destination,
				PiADLADManagementMetamodelElementTypes.PComponentPortAttachedRole_4014,
				PComponentPortAttachedRoleEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_PConnectorRole_DelegatedRoles_4015(
			PConnectorRole source) {
		LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/result = new LinkedList/*[org.admanager.piadlpattern.plugin.diagram.part.PiADLADManagementMetamodelLinkDescriptor]*/();
		for (Iterator/*[?]*/destinations = source.getDelegatedRoles()
				.iterator(); destinations.hasNext();) {
			PConnectorRole destination = (PConnectorRole) destinations.next();
			result.add(new PiADLADManagementMetamodelLinkDescriptor(
					source,
					destination,
					PiADLADManagementMetamodelElementTypes.PConnectorRoleDelegatedRoles_4015,
					PConnectorRoleDelegatedRolesEditPart.VISUAL_ID));
		}
		return result;
	}

}
